JavaScript

{dialog.object}setClean Method

Syntax

{dialog.object}.setClean([flagSetDataClean]);

Arguments

flagSetDataCleanboolean

Default = false. If true, controls in the UX Component that are data bound will be set to clean.

Description

Set the UX Component's data modified state to "clean".

Discussion

The setClean() method can be used to mark the UX Component as "clean" or unmodified.

The method takes an optional parameter, flagSetDataClean. Modified controls in the UX Component are tracked using two separate variables: _isDirty and _isDataDirty. _isDirty will be false if no control on the UX Component has been modified. _isDataDirty will only be false if no data bound controls have been modified. The flagSetDataClean parameter can be used to set the _isDataDirty variable to false, indicating that data bound controls are clean.

See setDirty() for more information.

Example

{dialog.object}.setClean();

See Also